package com.szq.ai.healthcare.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

/**
 * @author: szq
 * @description:
 * @date: 2025-05-28 09:03:55
 * @return
 */
@AiService(
        chatMemoryProvider ="chatMemoryProviderAi",
        tools = "appointmentTools",
        streamingChatModel = "qwenStreamingChatModel",
        contentRetriever = "contentRetrieverAi"
)
public interface AiAgent {

    @SystemMessage(fromResource = "ai-prompt-template.txt")
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
